﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using IHISCETeim.BLL;
using IHISCETeim.Library;
using IHISCETeim.Model;
using System.Data;

namespace IHISCETeim.Web.MachineSys.MarketModel.Execl
{
    public partial class ExportMBuyDetailReport : MBuyDetailReport
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            DataBind();
        }
        protected void DataBind()
        {

            DataTableCollection DTC = MMarketItemController.MbuyDetail_GetPagination(GetSQLWhere(), pageNum, 9999999, SQLSort, ref TotalCount);
            this.rpMenu.DataSource = DTC[0];
            this.rpMenu.DataBind();

            SUMDT = DTC[1];

            ExportToExecl("市场部物料采购明细报表", this.rpMenu);
        }
    }
}